import React from "react";
import ReactDOM from "react-dom";

export default function MyFuncComp() {
  const model = (
    <div
      id="model"
      style={{
        position: "fixed",
        zIndex: 9999,
        width: "100%",
        height: "100%",
        backgroundColor: "gray",
      }}
    ></div>
  );
  return ReactDOM.createPortal(model, document.body);
}
